package com.eningqu.aipen.logic.model.chat;

import java.util.Objects;

/**
 * Package:com.eningqu.aipen.logic.model.chat
 * Author:starr
 * Time:12/13/2023 11:27 AM
 * Description:
 */
public class Test {

    public class Student {
        private String studentId;
        private String name;
        private int age;
        private String gender;
        private String major;

        public Student(String studentId, String name, int age, String gender, String major) {
            this.studentId = studentId;
            this.name = name;
            this.age = age;
            this.gender = gender;
            this.major = major;
        }


        @Override
        public String toString() {
            return "Student{" +
                    "studentId='" + studentId + '\'' +
                    ", name='" + name + '\'' +
                    ", age=" + age +
                    ", gender='" + gender + '\'' +
                    ", major='" + major + '\'' +
                    '}';
        }

        @Override
        public boolean equals(Object o) {
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            Student student = (Student) o;
            return age == student.age && Objects.equals(studentId, student.studentId) && Objects.equals(name, student.name) && Objects.equals(gender, student.gender) && Objects.equals(major, student.major);
        }

        @Override
        public int hashCode() {
            return Objects.hash(studentId, name, age, gender, major);
        }

        public String getStudentId() {
            return studentId;
        }

        public void setStudentId(String studentId) {
            this.studentId = studentId;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }

        public String getGender() {
            return gender;
        }

        public void setGender(String gender) {
            this.gender = gender;
        }

        public String getMajor() {
            return major;
        }

        public void setMajor(String major) {
            this.major = major;
        }
    }

}
